/* vim: set ts=2 et sw=2 cindent fo=qroca: */

package com.globant.google.mendoza;

import java.util.Properties;

/** Represents the server request.
 */
public final class MendozaRequest {

  /** The request uri.
   */
  private String uri;

  /** The request method.
   */
  private String method;

  /** The request headers.
   */
  private Properties header;

  /** The request parameters.
   */
  private Properties params;

  /** The request message.
   */
  private String message;

  /** Creates an instance of MendozaRequest.
   *
   * @param theUri The request uri.
   *
   * @param theMethod The request method.
   *
   * @param theHeader The request headers.
   *
   * @param parameters The request parameters.
   *
   * @param theMessage The request message.
   */
  public MendozaRequest(final String theUri, final String theMethod,
      final Properties theHeader, final Properties parameters,
      final String theMessage) {
    uri = theUri;
    method = theMethod;
    header = theHeader;
    params = parameters;
    message = theMessage;
  }

  /** Gets the request uri.
   *
   * @return Returns the request uri.
   */
  public String getUri() {
    return uri;
  }

  /** Gets the request method.
   *
   * @return Returns the request method.
   */
  public String getMethod() {
    return method;
  }

  /** Gets the request headers.
   *
   * @return Returns the request headers.
   */
  public Properties getHeaders() {
    return header;
  }

  /** Gets the request parameters.
   *
   * @return Returns the request parameters.
   */
  public Properties getRequestParameters() {
    return params;
  }

  /** Gets the request message.
   *
   * @return Returns the request message.
   */
  public String getMessage() {
    return message;
  }
}

